<%--
    Document   : cabecalhoJSF
    Created on : 28/11/2010, 09:39:40
    Author     : Cleiviane
--%>

<%@page contentType="text/html" pageEncoding="UTF-8" language="java"%>
<%@taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
<%@taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">

<div class="cabecalho">
    <table>
        <tr>
            <td>
                <h:graphicImage value="../Imagens/EmBuscaEmprego.png"></h:graphicImage>
            </td>

            <td class="colunacabecalho">
                <h:outputLink value="paginaInicial.jsp">
                    <h:graphicImage value="../Imagens/EBE.png"></h:graphicImage>
                </h:outputLink>
            </td>
            <td>
                <h:outputLink value="paginaInicial.jsp">
                    <h:graphicImage value="../Imagens/#{idioma.atual}/inicio_home.png"></h:graphicImage>
                </h:outputLink>
            <td>
                <h:outputLink value="acesso.jsp" rendered="#{!controlUsuario.logado}">
                    <h:graphicImage value="../Imagens/#{idioma.atual}/acesso_signin.png"></h:graphicImage>
                </h:outputLink>
                <h:outputLink value="perfil.jsp" rendered="#{controlUsuario.logado}">
                    <h:graphicImage value="../Imagens/#{idioma.atual}/perfil_profile.png"></h:graphicImage>
                </h:outputLink>
            </td>
            <td>
                <h:outputLink value="sobre.jsp">
                    <h:graphicImage value="../Imagens/#{idioma.atual}/sobre_about.png"></h:graphicImage>
                </h:outputLink>
            </td>
            <td>
                <a href="contato.jsp">
                    <h:graphicImage value="../Imagens/#{idioma.atual}/contato_contact.png"></h:graphicImage>
                </a>
            </td>
            <td>
                <h:panelGrid columns="2">
                    <h:form id="frmIdioma" styleClass="tabelaRich750">
                        <h:outputText value="#{msgs['index.selecioneIdioma']}" styleClass="titulosPretos" />
                        <h:selectOneMenu value="#{idioma.atual}"
                                         valueChangeListener="#{idioma.escolherIdioma}"
                                         onchange="this.form.submit()">
                            <f:selectItems value="#{idioma.idiomasSuportados}" />
                        </h:selectOneMenu>
                    </h:form>
                </td>
            </h:panelGrid>
        </tr>
    </table>
    <h:panelGrid columns="2" rendered="#{controlUsuario.logado}">
        <div class="mensagemusuario">
            <div class="boasVindas" >${msgs['index.bemvindo']} ${controlUsuario.usuario.nome}</div>
        </div>
        <div class="mensagemlogout">
            <h:form id="frmLogout">
                <h:commandButton value="#{msgs['index.desconectar']}" action="#{controlUsuario.logout}" />
            </h:form>
        </div>
    </h:panelGrid>
</div>

<!-- imagem das pessoas na pagina inicial (comum para as duas paginas do usuario-->
<div class="imagemempregopessoas">
    <h:panelGrid columns="1">
        <h:form id="formPessoas">
            <h:outputLink value="../paginasjsp/paginaInicial.jsp">
                <h:graphicImage value="../Imagens/empregopessoas.jpg"></h:graphicImage>
            </h:outputLink>
        </h:form>
    </h:panelGrid>
</div>